package cn.sangedon.review.analysis.mapper;

import cn.sangedon.review.analysis.domain.StrategyResultQuery;
import cn.sangedon.review.common.domain.analysis.StockStrategy;
import cn.sangedon.review.common.domain.analysis.StockStrategyResult;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import java.util.List;
import org.apache.ibatis.annotations.Param;

/**
 * @author dongliangqiong
 * @description 针对表【tb_stock_strategy_result】的数据库操作Mapper
 * @createDate 2022-08-26 18:00:56
 * @Entity cn.sangedon.review.common.domain.strategy.StockStrategyResult
 */
public interface StockStrategyResultMapper extends BaseMapper<StockStrategyResult> {

    List<StockStrategyResult> getFiveHalfVolResult(StockStrategy stockStrategy);

    List<StockStrategyResult> getTenAveragefVolResult(StockStrategy stockStrategy);

    void updateTodayChangeRateOfYesterdayResult();

    List<StockStrategyResult> getAllStrategyResult(StrategyResultQuery strategyResultQuery);

    List<StockStrategyResult> getmixedStrategyResult(StrategyResultQuery strategyResultQuery);

    List<StockStrategyResult> getLatestResult();

    Long countNeedVerifyResult();

    List<StockStrategyResult> listFallShrinkResult(@Param("tradeDate") String tradeDate);
}




